package com.waya.web.browser.webview;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.nfc.Tag;
import android.text.TextUtils;
import android.view.KeyEvent;
import android.webkit.JavascriptInterface;
import android.widget.Toast;
import com.waya.web.browser.common.show.FL;
import com.waya.web.browser.common.util.AndroidUtils;
import com.waya.web.browser.common.util.ApkUtil;
import com.waya.web.browser.config.WebConfig;
import com.waya.web.browser.manager.WbWebManager;

/**
 * Created by JesseHev on 2017/12/4.
 * describe: Apk 安装、卸载、获取Apk信息AppInfo（是否安装、包名、版本大小、apk图标、apk名称 AppInfo）的js接口
 */

public class WanbaEpgInterface {

  private static final String TAG = "WanbaEpgInterface";

  private Context mContext;

  private Callback mCallback;

  public void setCallback(Callback callback) {
    mCallback = callback;
  }

  public WanbaEpgInterface(Context context) {
    this.mContext = context;
  }

  public WanbaEpgInterface() {
  }

  public interface Callback {

    void install(String ApkPath);

    void unInstall(String packageName);

    String getPackageInfo();
  }
}
